package com.lyz.service;

import com.lyz.entity.User;
import com.lyz.mapper.UsrMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UsrMapper mapper;

    public User findById(Integer id){
        return mapper.findById(id).get();
    }
}
